package com.lemonsama.lesson4;

import javax.swing.*;
import java.awt.*;

public class MyFrame extends JFrame {
    public void init() {
        this.setBounds(10, 10, 200, 300);
        this.setVisible(true);
        JLabel jLabel = new JLabel("JLabel", JLabel.CENTER);
        this.add(jLabel);
        Container contentPane = this.getContentPane();
        contentPane.setBackground(Color.BLUE);
        this.setDefaultCloseOperation(EXIT_ON_CLOSE);
    }
}
